import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @program: data_structures_algorithms
 * @description:
 * @author: lld
 * @create: 2021-04-22 21:45
 **/
public class Demo2 {
    public static void main(String[] args) {
        List<String> s1=new ArrayList<>();
        s1.add("1");
        s1.add("2");
        s1.add("3");
        ArrayList<String> s2 = new ArrayList<>(s1);
        List<String> s3=s1;
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);

        int[] arr=new int[6];
        arr[2]=2;
        arr[4]=4;
        int i=0;
        while (arr[i]!=0){
            System.out.println(arr[i]);
            i--;
        }
    }
}
